package com.xbongbong.workorder.explain;

import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import com.xbongbong.saas.domain.entity.WorkOrderFormEntity;

import java.util.List;

/**
 * @author 吴峰
 * @date 2022/01/19 17:11
 */
public interface WorkOrderExplainHandle {


    /**
     * 新建页面，回显模板
     * @param workOrderFormList
     * @param formId
     * @param explainList
     * @throws XbbException
     */
    void setTemplate(List<WorkOrderFormEntity> workOrderFormList, Long formId, List<FieldAttrEntity> explainList) throws XbbException;

    /**
     * 编辑页面，回显模板
     * @param list
     * @param userVO
     * @param workOrderFormEntity
     */
    void setTemplate(List<FieldAttrEntity> list, UserVO userVO, WorkOrderFormEntity workOrderFormEntity);
}
